import st7789py as st7789
from machine import SPI,Pin,UART
import time,gc,os
from fbconsole import FBConsole
spi = SPI(1, baudrate=10000000, polarity=1, sck=Pin(2), mosi=Pin(3))
lcd = st7789.ST7789(spi, 320, 240,
        reset=Pin(10, Pin.OUT),
        cs=Pin(7, Pin.OUT),
        dc=Pin(6, Pin.OUT),
        backlight=Pin(11, Pin.OUT),
        rotation=1)



scr = FBConsole(lcd,st7789.color565(0, 0, 0),st7789.color565(242, 242, 242))
os.dupterm(scr)  




